﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_FacMem.aspx.cs" Inherits="TAMS.Admin.Admin_FacMem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
        <div>
            <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Staff ID" 
                DataSourceID="TAMS" ForeColor="#333333" 
                GridLines="None" Width="100%" BorderColor="#B5C7DE" BorderStyle="Solid" 
                BorderWidth="1px">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:BoundField DataField="Staff ID" HeaderText="Staff ID" ReadOnly="True" 
                        SortExpression="Staff ID" />
                    <asp:BoundField DataField="E-Mail" HeaderText="E-Mail" 
                        SortExpression="E-Mail" />
                    <asp:BoundField DataField="Rank" HeaderText="Rank" SortExpression="Rank" />
                    <asp:BoundField DataField="Entry Date" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Entry Date" 
                        SortExpression="Entry Date" />
                    <asp:CommandField ButtonType="Button" ShowSelectButton="True">
                    <ControlStyle CssClass="button" Font-Overline="False" Font-Strikeout="False" 
                        Font-Underline="False" />
                    </asp:CommandField>
                    <asp:TemplateField>
                        <ItemTemplate>
                                <asp:Button ID="Details" runat="server" Text="Details" CommandName="Details"  OnClick="details_click" CssClass="button"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#97C1F4" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
        <asp:SqlDataSource ID="TAMS" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TAMSConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TAMSConnectionString.ProviderName %>" SelectCommand="SELECT S.fs_name as&quot; Name&quot;, S.fsid as &quot;Staff ID&quot;, S.fs_email as &quot;E-Mail&quot;, S.rank as &quot;Rank&quot;,S.fs_entryDate as &quot;Entry Date&quot; 
FROM DetFMem S "></asp:SqlDataSource>
</asp:Content>